/*
 * @Author: your name
 * @Date: 2021-06-29 09:19:41
 * @LastEditTime: 2021-07-14 17:34:23
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \vue-hr-project\src\store\getters.js
 */

const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  token: state => state.user.token,
  userId: state => state.user.userInfo.userId,
  points: state => state.user.userInfo.roles.points
}
export default getters
